Component({
  data: {
    value: '/pages/itra/itra',
    list: [
      { value: '/pages/itra/itra', label: '查询', icon: 'user-search' },
      { value: '/pages/about/about', label: '其他', icon: 'ellipsis' }
    ],
  },

  methods: {
    onChange(e) {
      wx.switchTab({
        url: e.detail.value
      });
      this.setData({ 
        value: e.detail.value 
      });
    }
  },
});